import {get, post,del,put} from "../util/reqest"
//查询收货地址信息
export const getreceiptapi=(data)=>get("/api/v1/addresses",data);

//新增收货地址信息
export const addreceiptapi=(data)=>post("/api/v1/addresses",data);

//获取单条收货地址
export const getreceiptoneapi=(id)=>get(`/api/v1/addresses/${id}`)

//删除单条收货地址
export const delreceiptoneapi=(id)=>del(`/api/v1/addresses/${id}`);

// 修改单条收货地址

export const updatareceiptapi=(id,{params})=>put(`/api/v1/addresses/${id}`,params);